<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class test extends CI_Controller {

    public function __construct() {
        parent::__construct();
    }

    public function index() {

        $this->load->helper("form");
        $this->load->library('form_validation');

        //  $this->load->view('header');
        $this->load->view('testV');
        //$this->load->view('footer');
    }

    public function create() {
        $this->load->helper('form');
$this->load->library('form_validation');
        $this->form_validation->set_rules('title', 'Título', 'required');
        $this->form_validation->set_rules('text', 'Texto', 'required');
        if ($this->form_validation->run() === FALSE) {
            
           echo "error";
            
        }
    }

}

